﻿//using System;
//using System.Collections.Generic;
//using System.ComponentModel;
//using System.Data;
//using System.Drawing;
//using System.Linq;
//using System.Text;
//using System.Windows.Forms;

//namespace Exdot
//{
//    public partial class InTuyChon : Form
//    {
//        public InTuyChon()
//        {
//            InitializeComponent();
//        }

//        private void InTuyChon_Load(object sender, EventArgs e)
//        {

//            this.reportViewer1.RefreshReport();
//        }
//    }
//}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Exdot
{
    public partial class InTuyChon : Form
    {
        public InTuyChon()
        {
            InitializeComponent();
        }
        public List<ChiTieu> result = null;
        private void InTuyChon_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'DataSet4.ChiTieu' table. You can move, or remove it, as needed.
           // this.ChiTieuTableAdapter.Fill(this.DataSet4.ChiTieu);
            // TODO: This line of code loads data into the 'DataSet2.ChiTieu' table. You can move, or remove it, as needed.
            
            // TODO: This line of code loads data into the 'DataSet1.ChiTieu' table. You can move, or remove it, as needed.

        }
        public string Button
        {
            set { textBox1.Text = value; }
        }
      

        private void textBox1_TextChanged_1(object sender, EventArgs e)
        {
            try
            {
                this.ChiTieuTableAdapter.Fill(this.DataSet2.ChiTieu, int.Parse(textBox1.Text));
            }
            catch
            {
            }
            this.reportViewer1.RefreshReport();
        }

       
    }
}

